<?php

class RTWUtils {

	static function testInfoValue($value) {
		if (
			mb_strlen($value, 'utf-8') &&
			mb_strtolower($value, 'utf-8') != 'unknown' &&
			$value != '0'
		) return true;
		return false;
	}

	static function getInfoFromRequest() {
		$returnInfo = array();
		foreach ($_GET as $key => $value) {
			if (self::testInfoValue($value)) $returnInfo[$key] = $value;
		}
		if (!empty($returnInfo)) return $returnInfo;
		return false;
	}

}

?>
